"""
    模块
    1：内置模块  operator time
    2：第三莫模块 cmd 中 pip
    3：自定义模块
    from sim_math import author,add,div  一般不用这种导入方式
"""
import sim_math
# from sim_math import author,add,div  一般不用这种导入方式，会导致命名冲突
print(sim_math.desc)
print(sim_math.add(1, 2))

"""
    别名
"""
#import sim_math as math
from sim_math import add as a,div as b
print(a(1, 2))
print(b(1, 2))

"""
    导包  包的本质上也是模块
"""

import package01
package01.regist()
package01.register.regist()

#from package01 import register
from package01 import register as r
r.regist()

#from package01 import *
#register.regist()

#from package01.package0101.sub_register import regist as subr
#subr()  #sub_register注册函数

from package01.package0101 import *
sub_register.regist()

